<!--{include(pe_tpl('header.html'));}-->
<div class="content">
	<!--{include(pe_tpl('user_menu.html'));}-->
	<div class="fr huiyuan_main">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="360" style="background:#fbfbfb; border:1px #ddd solid">
			<div class="hy_table3">
			<h3>收货信息</h3>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td style="text-align:right" width="77">收货姓名：</td>
				<td style="text-align:left">{$info['user_tname']}<span class="cblue font12">（会员帐号：{$info['user_name']}）</span></td>
			</tr>
			<tr>
				<td style="text-align:right">联系电话：</td>
				<td style="text-align:left">{$info['user_phone']}</td>
			</tr>
			<tr>
				<td style="text-align:right">收货地址：</td>
				<td style="text-align:left">{$info['user_address']}</td>
			</tr>
			<tr>
				<td style="text-align:right">付款方式：</td>
				<td style="text-align:left">{$ini_payway[$info['order_payway']]}</td>
			</tr>
			<tr>
				<td style="text-align:right">买家留言：</td>
				<td style="text-align:left">{$info['order_text']}</td>
			</tr>
			</table>
			</div>
		</td>
		<td valign="top" style="background:#fbfbfb; border:1px #ddd solid">
			<div class="ddzt">订单状态</div>
			<div class="ddlc">
			<p><span class="font12">{pe_date($info['order_atime'])}：</span><span class="cgreen">订单创建成功</span>，订单编号：{$info['order_id']}</p>
			<!--货到付款-->
			<!--{if($info['order_payway']=='cod'):}-->
				<!--{if($info['order_state']=='notpay'):}-->
				<p class="mat5 cred" style="padding-left:113px">等待卖家发货</p>
				<!--{elseif($info['order_state']=='send'):}-->
				<p class="mat5"><span class="font12">{pe_date($info['order_stime'])}：</span><span class="cgreen">卖家已经发货</span>，快递单号：{$info['order_wlid']}（{$info['order_wlname']?$info['order_wlname']:'无需快递'}）</p>
				<p class="mat5 cred" style="padding-left:113px">等待买家付款</p>
				<!--{elseif($info['order_state']=='success'):}-->
				<p class="mat5"><span class="font12">{pe_date($info['order_stime'])}：</span><span class="cgreen">卖家已经发货</span>，快递单号：{$info['order_wlid']}（{$info['order_wlname']?$info['order_wlname']:'无需快递'}）</p>
				<p class="mat5"><span class="font12">{pe_date($info['order_ptime'])}：</span><span class="cgreen">买家付款成功</span>，支付金额：{$info['order_money']}元</p>
				<p class="mat5"><span class="font12">{pe_date($info['order_ptime'])}：</span><span class="cgreen strong">订单交易成功，欢迎下次光临！</span></p>
				<!--{endif;}-->
			<!--先款后货-->
			<!--{else:}-->
				<!--{if($info['order_state']=='notpay'):}-->
				<p class="mat5 cred" style="padding-left:113px">等待买家付款<a href="index.php?mod=order&act=pay&id={$info['order_id']}" class="mal10 pay_btn" target="_blank">付款</a></p>
				<!--{elseif($info['order_state']=='paid'):}-->
				<p class="mat5"><span class="font12">{pe_date($info['order_ptime'])}：</span><span class="cgreen">买家付款成功</span>，支付金额：{$info['order_money']}元</p>
				<p class="mat5 cred" style="padding-left:113px">等待卖家发货</p>
				<!--{elseif($info['order_state']=='send'):}-->
				<p class="mat5"><span class="font12">{pe_date($info['order_ptime'])}：</span><span class="cgreen">买家付款成功</span>，支付金额：{$info['order_money']}元</p>
				<p class="mat5"><span class="font12">{pe_date($info['order_stime'])}：</span><span class="cgreen">卖家已经发货</span>，快递单号：{$info['order_wlid']}（{$info['order_wlname']?$info['order_wlname']:'无需快递'}）</p>
				<p class="mat5 cred" style="padding-left:113px">等待买家确认<a href="https://lab.alipay.com/consume/queryTradeDetail.htm?tradeNo={$info['order_id']}" class="mal10 shouhuo_btn" target="_blank">去支付宝确认收货</a></p>
				<!--{elseif($info['order_state']=='success'):}-->
				<p class="mat5"><span class="font12">{pe_date($info['order_ptime'])}：</span><span class="cgreen">买家付款成功</span>，支付金额：{$info['order_money']}元</p>
				<p class="mat5"><span class="font12">{pe_date($info['order_stime'])}：</span><span class="cgreen">卖家已经发货</span>，运单编号：{$info['order_wlid']}（{$info['order_wlname']?$info['order_wlname']:'无需快递'}）</p>
				<p class="mat5"><span class="font12">{pe_date($info['order_stime'])}：</span><span class="cgreen strong">订单交易成功，欢迎下次光临！</span></p>
				<!--{endif;}-->
			<!--{endif;}-->
			</div>
		</td>
	</tr>
	</table>
	<div class="hy_table" style="margin-top:10px;">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="hy_tb_tt1">
		<tr>
			<td class="bgtt font12" width="">商品详情</td>
			<td class="bgtt font12" width="120">商品单价(元)</td>
			<td class="bgtt font12" width="120">购买数量</td>
		</tr>
		</table>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-left:1px solid #ddd;">
		<!--{foreach($product_list as $v):}-->
		<tr>
			<td style="text-align:left;">
				<div class="dingdan_list" <!--{if($kk==0):}-->style="padding-top:0"<!--{endif;}-->>
					<a href="{pe_url('product-'.$v['product_id'])}" class="fl mar5"><img src="{pe_thumb($v['product_logo'], 60, 60)}" width="45" height="45"></a>
					<div class="fl font12">
						<a href="{pe_url('product-'.$v['product_id'])}" title="{$v['product_name']}" target="_blank" class="cblue dd_name">{$v['product_name']}</a>
						<!--{if($v['prorule_name']):}-->
						<p class="c888 mat5"><!--{foreach(unserialize($v['prorule_name']) as $vv):}-->[{$vv['name']}：{$vv['value']}]&nbsp;&nbsp;<!--{endforeach;}--></p>
						<!--{endif;}-->
						</div>
					<div class="clear"></div>
				</div>
			</td>
			<td width="110"><span class="num strong font14">{$v['product_money']}</span></td>
			<td width="100"><span class="num font14">{$v['product_num']}</span></td>
		</tr>
		<!--{endforeach;}-->
		</table>
		<div class="ddxq_je font13">
			应付总额：<span class="strong num1 font18 cred strong">{$info['order_money']}</span>(元) ＝ 
			<span class="font14 cred num strong">{$info['order_productmoney']}</span>(商品总额)
			＋ <span class="font14 cred num strong">{$info['order_wlmoney']}</span>(运费)
		</div>
	</div>
	</div>
</div>
<script type="text/javascript">
function pay_goto(order_id) {
	window.location.href = "{$pe['host_root']}index.php?mod=order&act=pay&id="+order_id;
}
</script>
<!--{include(pe_tpl('footer.html'));}-->